package com.vrp3d.mapper;

import com.vrp3d.domain.po.Booth;
import com.vrp3d.domain.po.BoothExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 展位
 *
 * @author Wilde
 */
@Repository
public interface BoothMapper {
    int countByExample(BoothExample example);

    int deleteByExample(BoothExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Booth record);

    int insertSelective(Booth record);

    List<Booth> selectByExample(BoothExample example);

    Booth selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Booth record, @Param("example") BoothExample example);

    int updateByExample(@Param("record") Booth record, @Param("example") BoothExample example);

    int updateByPrimaryKeySelective(Booth record);

    int updateByPrimaryKey(Booth record);

    /**
     * 回显展位上是否有信息
     *
     * @param showroomId
     * @param status
     * @return
     */
    List<Integer> echoWhetherThereIsInformationOnTheBooth(@Param("showroomId") Integer showroomId, @Param("status") Integer status);
}